home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20030409-20031118
/
000302_nugulus@netscape.net_Thu Sep 25 17:58:27 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2003-11-18
|
2KB
|
61 lines
Article: 14546 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!dfw-feed.news.verio.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!in.100proofnews.com!in.100proofnews.com!prodigy.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr22.news.prodigy.com.POSTED!d286b79e!not-for-mail
From: Jun Zhang <nugulus@netscape.net>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.protocols.kermit.misc
Subject: How to make use of a terminal server
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 39
Message-ID: <gQHcb.483$z11.142@newssvr22.news.prodigy.com>
NNTP-Posting-Host: 159.66.144.147
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr22.news.prodigy.com 1064520076 ST000 159.66.144.147 (Thu, 25 Sep 2003 16:01:16 EDT)
NNTP-Posting-Date: Thu, 25 Sep 2003 16:01:16 EDT
Organization: SBC http://yahoo.sbc.com
X-UserInfo1: FKPO@MON[JS]R\XX[ZOD]_\@VR]^@B@MCPWZKB]MPXHTEPIB_NVUAH_[BL[\IRKIANGGJBFNJF_DOLSCENSY^U@FRFUEXR@KFXYDBPWBCDQJA@X_DCBHXR[C@\EOKCJLED_SZ@RMWYXYWE_P@\\GOIW^@SYFFSWHFIXMADO@^[ADPRPETLBJ]RDGENSKQQZN
Date: Thu, 25 Sep 2003 20:01:16 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14546
I have access to a terminal server where a modem pool is served.
Invokation of the modem is like the following,
telnet hostname portnum
Username: (type name and return)
Password: (type pass and return)
atdtphonenumber
I tried to use the following kermit script to automate the authentication,
#!/usr/local/bin/kermit
def myuserid username
def mypasswd password
set carrier-watch off
set host hostname portnum
for \%i 1 10 1 {
input 20 Username:
if success break
output \13
}
if > \%i 10 exit 1 No login prompt.
output \m(myuserid)\13
for \%j 1 10 1 {
input 10 Password:
if success break
output \13
{
if > \%j 10 exit No Password prompt.
output \m(mypasswd)\13
undef mypasswd
but password is always prompted interactively. My immediate purpose is
to use the dial command in the kermit script, how can I do it?
Jun